<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.nerve.cloudoffice.domain.User" %>
<%
String PATH = request.getContextPath();

User user = (User)session.getAttribute("LOGIN_USER");
%>

<script>
var username = '<%=(user==null ? "":user.getName()) %>';

if(username != ""){
	document.getElementById("userDiv").innerHTML = 
		"您好,"+username+".<a class='fg-color-white' href='<%=PATH %>/logout.htm'>[注销]</a>";
}else{
	document.getElementById("userDiv").innerHTML = 
		"欢迎光临。<a class='fg-color-white' href='<%=PATH %>/login.htm'>[登录]</a>";
}
</script>